package com.moon.interface_api.response;

/**
 * 
* @ClassName: BaseResponse
* @Description: 基础类
* @author fenglu
* @date 2018年3月26日 下午9:40:01
*
 */
public class BaseResponse {
	
	//100000 成功
	private String code = "0000";

	//success or failure
	private String message = "success";

	private Object data;

	public boolean isSuccess() {
		return this.code.equals("100000");
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "BaseResponse{" +
				"code='" + code + '\'' +
				", message='" + message + '\'' +
				", data=" + data +
				'}';
	}
}
